package com.appkubes.mall.core.entity;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
/**
 * 
 * @author Rongjie
 */
@Data
@TableName("mall_order_goods")
@KeySequence(value = "mall_order_goods_SEQ")
@ApiModel(value = "MallOrderGoods对象")
public class MallOrderGoods implements Serializable{

       private String appKey;

       @TableId(value = "ordergoods_key", type = IdType.UUID)
       private String ordergoodsKey;

       private String storeKey;

       @ApiModelProperty(value = "订单id")
       private String orderKey;

       @ApiModelProperty(value = "商品id")
       private String goodsKey;

       @ApiModelProperty(value = "商品名称")
       private String goodsName;

       @ApiModelProperty(value = "单价")
       private BigDecimal price;

       @ApiModelProperty(value = "数量", example = "1")
       private Integer num;

       @ApiModelProperty(value = "总价")
       private BigDecimal amount;

       @ApiModelProperty(value = "商品规格")
       private String attrKeys;

       private String attrNames;

       @ApiModelProperty(value = "规格json")
       private String attrJson;

       @ApiModelProperty(value = "图片")
       private String pic;

       private Integer createTime;

       @ApiModelProperty(value = "unPay未支付（待支付）；payFail（支付失败）；paySuccess支付成功（待配送）；sending配送中；arrive送达（待自提）；completed已完成；cancel已取消；cancel已取消;\r\nshortage缺货取消;\r\n")
       private String state;

       private String leaderKey;

       @ApiModelProperty(value = "业务员id")
       private String salesmanKey;

       private Integer updateTime;

       private String userKey;

       @ApiModelProperty(value = "saas_point的userid")
       private String saasUserid;

       @ApiModelProperty(value = "优惠券金额")
       private BigDecimal couponMoney;

       @ApiModelProperty(value = "支付总金额")
       private BigDecimal payAmount;

       @ApiModelProperty(value = "商品类型;1:商品", example = "1")
       private Integer type;

       @ApiModelProperty(value = "1 删除", example = "1")
       private Integer isDelete;

       @ApiModelProperty(value = "分润：团长提成，分销提成")
       private BigDecimal shareAmount;

       @ApiModelProperty(value = "活动id")
       private String activityKey;

       @ApiModelProperty(value = "活动结束时间", example = "1")
       private Integer activityEndtime;

       @ApiModelProperty(value = "团长确认提货时间", example = "1")
       private Integer deliveryTime;

       @ApiModelProperty(value = "提货状态,默认0,1待处理,2已处理,3处理中", example = "1")
       private Integer deliveryStatus;

       @ApiModelProperty(value = "版本号", example = "1")
       @Version
       private Integer version;

}
